#include<stdio.h>

int AddTop(int top)
{
  int res = 0;
  int i = 0;
  for(i = 1 ;i<=top;i++)
  {
     res+=i;
  }

  return res;
}


int main()
{
  int result = 0;
  int top = 100;
  result = AddTop(top);
  printf("result:%d\n",result);
  return 0;
}
